home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / micommnt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  3.2 KB  |  142 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    commentdialogId ;
  9. extern int    commentId ;
  10. extern int    commentbtnId[2] ;
  11. extern int    igo_commentset() ;
  12. extern int    igo_commentcancel() ;
  13.  
  14. #define ALIGN    4
  15. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  16.  
  17. /*    MMI_init 用データ    */
  18.  
  19. /*    ヘッダ    */
  20.  
  21. MMIINIT    initDataMICOMMNT = { "MmiInit",   7, 0 } ;
  22.  
  23. /* commentdialogId */
  24.  
  25. static MMIPACKET d001 = {    &commentdialogId,
  26.                             NULL,
  27.                             &MJ_DIALOGL40,
  28.                             OFFSET(DIALOGL40),
  29.                             MS_NONE
  30.                         } ;
  31. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  32.                              191,  71, 438, 366, 8, 7, 8,
  33.                             MS_SRECTL40 | MS_FRAMEL40,
  34.                             NULL,   0,   0
  35.                         } ;
  36.  
  37. /* commentId */
  38.  
  39. static MMIPACKET d002 = {    &commentId,
  40.                             &commentdialogId,
  41.                             &MJ_TEXTL40,
  42.                             OFFSET(TEXTL40),
  43.                             MS_NONE
  44.                         } ;
  45. static TEXTL40    d002d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
  46.                              198,  99, 429, 323, 8,15, 8,
  47.                             MS_FRAMEL40,
  48.                             0,
  49.                                0,   0,   0,   0,
  50.                                0,   0,   0,   0,   0,
  51.                                  256,   0,   0,
  52.                                0,   0,   0,   0,
  53.                                0,
  54.                                0,   0,   0,   0,
  55.                                1,  12,  12,   0,   0,
  56.                                0,   0,   0,   0,   0,   0,   0,
  57.                                0,   0,   0,   0,
  58.                               24
  59.                         } ;
  60.  
  61. /* commentbtnId[0] */
  62.  
  63. static MMIPACKET d003 = {    &commentbtnId[0],
  64.                             &commentdialogId,
  65.                             &MJ_DBUTTONL40,
  66.                             OFFSET(DBUTTONL40),
  67.                             MS_NONE
  68.                         } ;
  69. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  70.                              222, 330, 301, 355, 4, 7, 8,
  71.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  72.                             igo_commentset,
  73.                             0x0000
  74.                         } ;
  75.  
  76. /* commentbtnId[1] */
  77.  
  78. static MMIPACKET d004 = {    &commentbtnId[1],
  79.                             &commentdialogId,
  80.                             &MJ_DBUTTONL40,
  81.                             OFFSET(DBUTTONL40),
  82.                             MS_NONE
  83.                         } ;
  84. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  85.                              324, 329, 403, 354,10, 7, 8,
  86.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  87.                             igo_commentcancel,
  88.                             0x0000
  89.                         } ;
  90.  
  91. /* NULL */
  92.  
  93. static MMIPACKET d005 = {    NULL,
  94.                             &commentdialogId,
  95.                             &MJ_MSGL40,
  96.                             OFFSET(MSGL40),
  97.                             MS_NONE
  98.                         } ;
  99. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  100.                              231,  74, 390,  97, 8,15, 8,
  101.                             MS_NONEL40,
  102.                             "コメント",
  103.                                1,  12,  12,
  104.                             MS_NONEL40,
  105.                                5,   0
  106.                         } ;
  107.  
  108. /* NULL */
  109.  
  110. static MMIPACKET d006 = {    NULL,
  111.                             &commentdialogId,
  112.                             &MJ_MSGL40,
  113.                             OFFSET(MSGL40),
  114.                             MS_NONE
  115.                         } ;
  116. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  117.                              228, 332, 295, 352, 8,15, 8,
  118.                             MS_NONEL40,
  119.                             "設定",
  120.                                1,  12,  12,
  121.                             MS_NONEL40,
  122.                                5,   0
  123.                         } ;
  124.  
  125. /* NULL */
  126.  
  127. static MMIPACKET d007 = {    NULL,
  128.                             &commentdialogId,
  129.                             &MJ_MSGL40,
  130.                             OFFSET(MSGL40),
  131.                             MS_NONE
  132.                         } ;
  133. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  134.                              329, 331, 396, 351, 8,15, 8,
  135.                             MS_NONEL40,
  136.                             "取消",
  137.                                1,  12,  12,
  138.                             MS_NONEL40,
  139.                                5,   0
  140.                         } ;
  141.  
  142.